<div class="cbody">
	<div class="cwarp">
		<div class="page-content">
			<div class="page-header">
				<h1>
					<a href="#/user/user_list">用户管理</a>
					<small> <i class="ace-icon fa fa-angle-double-right"></i> 用户修改
					</small>
				</h1>
			</div>
			<!-- /.page-header -->
			<div class="row">
				<div class="col-xs-12">
					<form class="form-horizontal" role="form" id="editForm" name="editForm" ng-model="editForm"
						novalidate>
						
						<div class="form-group">
							<label class="col-xs-3 col-sm-3 control-label no-padding-right">
								<span class="red">*</span>
								用户名
							</label>
							<div class="col-xs-7 col-sm-7">
								<div class="col-xs-8 col-sm-8">
									<input name="username" type="text" placeholder="用户名为必填项......" style="width:100%;"
										ng-model="editItem.username" maxlength="45" ensure-id=""
										ensure-unique="{{editItem.username}}" required>
								</div>
								<i class="ace-icon fa fa-times-circle"
									ng-show="submitted && editForm.username.$invalid"></i>
								<i class="ace-icon fa fa-check-circle green" ng-show="editForm.username.$valid"></i>
								
								<i class="error" ng-show="submitted && editForm.username.$invalid">
									<small class="error" ng-show="editForm.username.$error.required">用户名不可为空 </small> 
								</i>
								<small class="error" ng-show="editForm.username.$error.unique"> 用户名已存在，请重新输入</small>
							</div>
							<div class="space-2"></div>
						</div>
						
						<!-- 角色树 -->
						<div class="form-group" >
							<label class="col-xs-3 col-sm-3 control-label no-padding-right">
								<span class="red">*</span>
								角色
							</label>
							<div class="col-xs-7 col-sm-7">
								<div class="col-xs-8 col-sm-8">
									<tree-dropdown class="tree-dropdown " data="roleTreeData" selected="selectedRole"></tree-dropdown>
								</div>
							</div>
							<div class="space-2"></div>
						</div>
						
						<div class="form-group">
							<label class="col-xs-3 col-sm-3 control-label no-padding-right"> 是否可用 </label>
							<div class="col-xs-6 col-sm-6 ">
								<div class="radio ">
									<label>
										<input name="accountState" type="radio" class="ace" value="1" ng-model="editItem.accountState"
											required />
										<span class="lbl"> 可用</span>
									</label>
									<label>
										<input name="accountState" type="radio" class="ace" value="0" ng-model="editItem.accountState"
											required />
										<span class="lbl">不可用</span>
									</label>
								</div>
							</div>
							<div class="space-3"></div>
						</div>
					</form>
				</div>
				<div class="clearfix form-actions">
					<div class="col-md-offset-3 col-md-7">
						<button class="btn btn-info btn-bold" type="button" 
							ng-click="save()">
							<i class="ace-icon fa fa-check bigger-110"></i>
							保存
						</button>
						&nbsp; &nbsp; &nbsp;
						<button class="btn btn-bold" type="reset" ng-click="backToList()">
							<i class="ace-icon fa fa-reply bigger-110"></i>
							返回
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>